package com.wjm.blog.system.fallback;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wjm.blog.common.base.response.Result;
import com.wjm.blog.system.api.SysRoleApi;
import com.wjm.blog.system.vo.request.SysRoleQueryVo;
import com.wjm.blog.system.vo.request.SysRoleSaveVo;
import com.wjm.blog.system.vo.response.SysRoleDetailVo;
import com.wjm.blog.system.vo.response.SysRoleListVo;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Component;

import javax.validation.Valid;
import java.util.List;

/**
 * 角色信息表Fallback
 *
 * @author wjm
 * @version 1.0
 * @date 2023-10-18T14:34:39.274
 */
@Log4j2
@Component
public class SysRoleFallback implements SysRoleApi {

    @Override
    public Result<IPage<SysRoleListVo>> page(SysRoleQueryVo queryVo) throws Exception {
        log.info("[SysRoleApi]的page(SysRoleQueryVo queryVo)发生异常，请求参数：{}", queryVo);
        return null;
    }

    @Override
    public Result<List<SysRoleListVo>> list(SysRoleQueryVo queryVo) throws Exception {
        log.info("[SysRoleApi]的list(SysRoleQueryVo queryVo)发生异常，请求参数：{}", queryVo);
        return null;
    }

    @Override
    public Result<SysRoleDetailVo> get(Long id) throws Exception {
        log.info("[SysRoleApi]的get(Long id)发生异常，请求参数：{}", id);
        return null;
    }

    @Override
    public Result insert(@Valid SysRoleSaveVo saveVo) throws Exception {
        log.info("[SysRoleApi]的insert(SysRoleSaveVo saveVo)发生异常，请求参数：{}", saveVo);
        return null;
    }

    @Override
    public Result update(Long id, @Valid SysRoleSaveVo saveVo) throws Exception {
        log.info("[SysRoleApi]的update(Long id, SysRoleSaveVo saveVo)发生异常，请求参数：{},{}", id, saveVo);
        return null;
    }

    @Override
    public Result invalid(List<Long> ids) throws Exception {
        log.info("[SysRoleApi]的invalid(List<Long> ids)发生异常，请求参数：{}", ids);
        return null;
    }
}
